package com.seari.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.seari.bean.UserRole;
import com.seari.mapper.UserRoleMapper;
import com.seari.service.UserRoleService;

@Service("UserRoleService")
public class UserRoleServiceImpl implements UserRoleService {
	
	@Autowired
	private UserRoleMapper userRoleMapper;
	
	

	@Override
	@Transactional(rollbackFor = Exception.class)
	public int apportionRoles(UserRole userRole) {
		// TODO Auto-generated method stub
        return userRoleMapper.apportionRoles(userRole);
	}
}
